import service from '@/utils/request'
export const yryyGetCategory = (params) => {
  return service({
    url: '/yryy/yryyGetCategory',
    method: 'get',
    params
  })
}

export const yryyGetidCategory = (params) => {
  return service({
    url:'/yryy/yryyGetidCategory',
    method:'get',
    params
  })
}

export const yryyDeleteCategory = (params) => {
  return service({
    url:'/yryy/yryyDeleteCategory',
    method:'delete',
    params
  })
}

export const yryyCreateCategory = (data) => {
  return service({
    url:'/yryy/yryyCreateCategory',
    method:'post',
    data
  })
}

export const yryyUpdateCategory = (data) => {
  return service({
    url:'/yryy/yryyUpdateCategory',
    method:'put',
    data
  })
}
